 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace WindowsFormsApplication1.controller
{
    class Control
    {

        model.model my_model = new model.model();

//add coment

        public bool checkIfReferyINData(string id)
        {
        int temp=id;
        temp=0;
            bool anss = false;
            SqlDataReader data;
            string quary = "Select * from Referee where R_Id= '" + id + "'";
            try
            {
               data=my_model.getresult(quary);
               if (data.HasRows)
               {
                   anss = true;
               }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return anss;
        }
    }
}
